import Mock from 'mockjs'

Mock.setup({
    timeout: 2000
})

let data = [
    {
       id:0,
        name: "外卖",
        img:require('../public/images/icon_pic1 (1).jpg')
    },
    {
        id:1,
        name: "美食",
        img:require('../public/images/icon_pic1 (2).jpg')
    },
    {
        id:2,
        name: "酒店",
        img:require('../public/images/icon_pic1 (3).jpg')
    },

    {
        id:3,
        name: "电影",
        img:require('../public/images/icon_pic1 (4).jpg')
    },
    {
        id:4,
        name: "市民中心",
        img:require('../public/images/icon_pic1 (5).jpg')
    },
    {
        id:5,
        name: "转账",
        img:require('../public/images/icon_pic1 (6).jpg')
    },
    {
        id:6,
        name:"信用卡",
        img:require('../public/images/icon_pic1 (7).jpg')
    },
    {
        id:7,
        name:  "充值中心",
        img:require('../public/images/icon_pic1 (8).jpg')
    },
    {
        id:8,
        name:  "余额宝",
        img:require('../public/images/icon_pic1 (9).jpg')
    },
    {
        id:9,
        name: "滴滴出行",
        img:require('../public/images/icon_pic1 (10).jpg')
    },
    {
        id:10,
        name:"蚂蚁庄园",
        img:require('../public/images/icon_pic1 (11).jpg')
    },
    {
        id:11,
        name: "芝麻信用",
        img:require('../public/images/icon_pic1 (12).jpg')
    },
    {
        id:12,
        name:  "火车机票",
        img:require('../public/images/icon_pic1 (13).jpg')
    },
    {
        id:13,
        name:"记账本",
        img:require('../public/images/icon_pic1 (14).jpg')
    },
    {
        id:14,
        name: "更多",
        img:require('../public/images/icon_pic1 (15).jpg')
    },


]

Mock.mock('/getList', {
    data
})
